package ooday04;

public class TestAnimal {
    public static void main(String[] args) {
        Cat cat = new Cat("Tom","blue",5);
        cat.capture();
        cat.eat();
        cat.play();

        Tiger[] tiger = new Tiger[3];
        tiger[0] = new Tiger("泰哥","yellow",8);
        tiger[1] = new Tiger("东北虎","yellow",8);
        tiger[2] = new Tiger("华南虎","yellow",8);

        for(int i = 0;i<tiger.length;i++){
            System.out.println(tiger[i].name);
        }
        tiger[0].drink();
        tiger[1].fighting();
    }
}
